#include "DeclineMessage.h"

vsznDefault(DeclineMessage);

DeclineMessage::DeclineMessage()
{
	// Default constructor is
	// necessary for serialization
}

DeclineMessage::DeclineMessage(bool accept, DeclineMessage::DECLINE_REASON reason, string key) //:
//    accept(accept), key(key)
{
  this->accept = accept;
  this->reason = (uint8_t) reason;
  this->key = key;
}


string DeclineMessage::get_key()
{
  return key;
}

bool DeclineMessage::get_accept()
{
  return accept;
}

DeclineMessage::DECLINE_REASON DeclineMessage::get_reason()
{
    return (DeclineMessage::DECLINE_REASON) reason;
}
